Share via


AssertSettings Class [IIS 7 and higher]

Specifies the user-interface mode for the System.Diagnostics.Debug.Assert method and the name of a message log file.

Syntax

class AssertSettings : EmbeddedObject

Methods

This class contains no methods.

Properties

The following table lists the properties exposed by the AssertSettings class.

Name

Description

AssertUIEnabled

A read/write boolean value. true if user-interface mode is enabled for the Debug.Assert method; otherwise, false. The default is true.

NoteNote:
In user-interface mode, a message box is displayed when you call the Debug.Assert method.

LogFileName

A read/write string value that specifies the name of a log file to write trace or debug messages to.

Subclasses

This class contains no subclasses.

Remarks

Instances of this class are contained in the Assert property of the SystemDiagnosticsSection class.

Inheritance Hierarchy

EmbeddedObject

   AssertSettings

Requirements

Type

Description

Client

Requires IIS 7 on Windows Vista.

Server

Requires IIS 7 on Windows Server 2008.

Product

IIS 7

MOF file

WebAdministration.mof

See Also

Reference

EmbeddedObject Class [IIS 7 and higher]

SystemDiagnosticsSection Class [IIS 7 and higher]

Other Resources

System.Diagnostics.Debug.Assert Method